<script setup>
import TopButton from "@/components/Pengyq/TopButton.vue";
import bottomBtn from "@/components/Pengyq/bottomBtn.vue";

import { ref } from "vue";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
const allOrders = ref([
  {
    img: "/images/Me/shoe.png",
    title:
      "The new Holy Shield Gundam is not assembled with a 1/100 Holy Shield Gundam",
    price: " 39,99",
  },
]);
</script>
<template>
  <TopButton title="Pending" />
  <main>
    <div class="detail">
      <div class="card">
        <h5 class="title">1510 Polk Street, Houston USA</h5>
        <span class="timer">Jia Ke Yin 832-583-7153 </span>
      </div>
      <div class="box box_show" v-for="(item, index) in allOrders" :key="index">
        <div class="list_hd">
          <div class="login">
            <img src="/images/Me/login.png" alt="" /> Super Man
          </div>
          <div class="text_right">Successful</div>
        </div>
        <div class="list_ad">
          <div class="imgs">
            <img :src="item.img" alt="" />
          </div>
          <div class="title ellipsis-2">{{ item.title }}</div>
          <div class="introduce">
            <div class="price"><i>Pi</i>{{ item.price }}</div>
            <div class="bottom_button">
              <div class="btn">Contact the seller</div>
            </div>
          </div>
        </div>
      </div>
      <div class="card info">
        <div class="item">订单编号：3210437294792304723</div>
        <div class="item">下单时间：2023-01-03</div>
      </div>
      <bottom-btn title="联系卖家" path="/" />
    </div>
  </main>
</template>

<style lang="scss" scoped>
main {
  font-size: 14rem;
  background-color: #f5f5f5;
  height: 100vh;
  box-sizing: border-box;

  .detail {
    padding-top: 10rem;

    .card {
      margin: 0 10rem;
      margin-bottom: 20rem;
      padding: 10rem;

      .title {
        font-weight: 500;
        color: #000;
        font-size: 16rem;
        margin-bottom: 30rem;
      }

      .timer {
        font-size: 14rem;
        color: #a6a6a6;
      }
    }

    .box {
      padding: 0 10rem;
      margin-top: 10rem;
      background-color: #fff;

      .list_hd {
        display: flex;
        justify-content: space-between;
        height: 20rem;
        padding: 10rem 0;

        .login {
          color: #000000;
          font-weight: 500;
          font-size: 16rem;

          img {
            height: 100%;
            vertical-align: middle;
            border-radius: 50%;
            overflow: hidden;
          }
        }

        .text_right {
          color: #642e8e;
          font-size: 16rem;
        }
      }

      .list_ad {
        display: flex;
        margin-top: 5rem;

        .imgs {
          width: 20%;

          img {
            width: 100%;
          }
        }

        .title {
          margin-left: 20rem;
          width: 120rem;
          height: 58rem;
          font-size: 14rem;
          line-height: 26rem;
        }

        .introduce {
          display: flex;
          flex-direction: column;
          padding-left: 20rem;

          .price {
            margin-left: auto;
            margin-bottom: 20rem;
            font-size: 16rem;
            font-weight: 600;
            color: rgb(0, 0, 0);

            >i {
              color: #000000;
              font-size: 12rem;
            }
          }

          .bottom_button {
            margin-left: auto;
            display: flex;

            .btn {
              margin-left: 10rem;
              font-size: 12rem;
              width: 120rem;
              height: 30rem;
              line-height: 30rem;
              text-align: center;
              border-radius: 20rem;
              background-color: #642e8e;
              color: #fff;
            }
          }
        }
      }
    }

    .info {
      margin: 0;
      margin-top: 10rem;
      border-radius: 0;
      padding: 10rem;
      font-size: 14rem;
      color: #333333;
      line-height: 25rem;
    }
  }
}
</style>